home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
335_02
/
as6811.txt
< prev
next >
Wrap
Text File
|
1990-12-02
|
29KB
|
1,123 lines
- 1 -
A. Appendix_for_as6811_Frankenstein_Assembler
A.1 Pseudo_Operations
A.1.1 Standard_Pseudo_Operation_Mnemonics
End END
File Inclusion INCL INCLUDE
If IF
Else ELSE
End If ENDI
Equate EQU
Set SET
Org ORG
Reserve Memory RESERVE RMB
Define Byte Data BYTE DB FCB
Define Word Data DW FDB WORD
Define String Data FCC STRING
Define Character Set Translation CHARSET
Define Character Value CHARDEF CHD
Use Character Translation CHARUSE
A.1.2 Machine_Dependent_Pseudo_Operations
A.1.2.1 Instruction_Set_Selection
CPU string
The instruction set can be specified in the source file with
the CPU pseudooperation. The string, delimited by quotes or
apostrophes, is scanned for a substring which selects which
instruction set is used. When the program is invoked, this
operation is performed on the name of the program, then the
-p optional argument, if any, and then any CPU statements.
The last one selects which subset of the instructions the
assembler will accept. The instruction set can be changed
at any place in the source file.
Instruction Set Substrings
68hc11 11
6801 01 03
6800 00 02 08
A.2 Instructions
A.2.1 Instruction_List
- 2 -
Opcode Syntax Selection Criteria
ABA
ABX TS6801PLUS
ABY TS6811
ADC ACCUM '#' expr REGA
ADC ACCUM '#' expr REGB
ADC ACCUM expr REGA+DIRECT
ADC ACCUM expr REGA+EXTENDED
ADC ACCUM expr REGB+DIRECT
ADC ACCUM expr REGB+EXTENDED
ADC ACCUM indexed REGA+REGX
ADC ACCUM indexed REGA+REGY+TS6811
ADC ACCUM indexed REGB+REGX
ADC ACCUM indexed REGB+REGY+TS6811
ADCA '#' expr
ADCA expr DIRECT
ADCA expr EXTENDED
ADCA indexed REGX
ADCA indexed REGY+TS6811
ADCB '#' expr
ADCB expr DIRECT
ADCB expr EXTENDED
ADCB indexed REGX
ADCB indexed REGY+TS6811
ADD ACCUM '#' expr REGA
ADD ACCUM '#' expr REGB
ADD ACCUM expr REGA+DIRECT
ADD ACCUM expr REGA+EXTENDED
ADD ACCUM expr REGB+DIRECT
ADD ACCUM expr REGB+EXTENDED
ADD ACCUM indexed REGA+REGX
ADD ACCUM indexed REGA+REGY+TS6811
ADD ACCUM indexed REGB+REGX
ADD ACCUM indexed REGB+REGY+TS6811
ADDA '#' expr
ADDA expr DIRECT
ADDA expr EXTENDED
ADDA indexed REGX
ADDA indexed REGY+TS6811
- 3 -
Opcode Syntax Selection Criteria
ADDB '#' expr
ADDB expr DIRECT
ADDB expr EXTENDED
ADDB indexed REGX
ADDB indexed REGY+TS6811
ADDD '#' expr 0+TS6801PLUS
ADDD expr DIRECT+TS6801PLUS
ADDD expr EXTENDED+TS6801PLUS
ADDD indexed REGX+TS6801PLUS
ADDD indexed REGY+TS6811
AND ACCUM '#' expr REGA
AND ACCUM '#' expr REGB
AND ACCUM expr REGA+DIRECT
AND ACCUM expr REGA+EXTENDED
AND ACCUM expr REGB+DIRECT
AND ACCUM expr REGB+EXTENDED
AND ACCUM indexed REGA+REGX
AND ACCUM indexed REGA+REGY+TS6811
AND ACCUM indexed REGB+REGX
AND ACCUM indexed REGB+REGY+TS6811
ANDA '#' expr
ANDA expr DIRECT
ANDA expr EXTENDED
ANDA indexed REGX
ANDA indexed REGY+TS6811
ANDB '#' expr
ANDB expr DIRECT
ANDB expr EXTENDED
ANDB indexed REGX
ANDB indexed REGY+TS6811
ASL ACCUM REGA
ASL ACCUM REGB
ASL expr
ASL indexed REGX
ASL indexed REGY+TS6811
ASLA
ASLB
ASLD TS6801PLUS
- 4 -
Opcode Syntax Selection Criteria
ASR ACCUM REGA
ASR ACCUM REGB
ASR expr
ASR indexed REGX
ASR indexed REGY+TS6811
ASRA
ASRB
BCC expr
BCLR expr ',' expr TS6811
BCLR indexed ',' expr REGX+TS6811
BCLR indexed ',' expr REGY+TS6811
BCS expr
BEQ expr
BGE expr
BGT expr
BHI expr
BHS expr
BIT ACCUM '#' expr REGA
BIT ACCUM '#' expr REGB
BIT ACCUM expr REGA+DIRECT
BIT ACCUM expr REGA+EXTENDED
BIT ACCUM expr REGB+DIRECT
BIT ACCUM expr REGB+EXTENDED
BIT ACCUM indexed REGA+REGX
BIT ACCUM indexed REGA+REGY+TS6811
BIT ACCUM indexed REGB+REGX
BIT ACCUM indexed REGB+REGY+TS6811
BITA '#' expr
BITA expr DIRECT
BITA expr EXTENDED
BITA indexed REGX
BITA indexed REGY+TS6811
BITB '#' expr
BITB expr DIRECT
- 5 -
Opcode Syntax Selection Criteria
BITB expr EXTENDED
BITB indexed REGX
BITB indexed